{if $Think.get.passenger_id}
var add_all = allarea()
var city = [];
var county = [];
Load()
$('.back1').on('click',function(){
	window.location.href='{:url("html/system/passenger")}'
})
ajax(api.passenger.list,{
	where_json:JSON.stringify({
		passenger_id:['in',"{$Think.get.passenger_id}"]
	})
},'post').done(function(res){
	res=passengerstate(res)
	Load(1)
	res.data[0].province2='';
	if((res.data[0].province-0)!=0){
		
		city=getdetail(res.data[0].province, add_all, 'id').city
		res.data[0].province2+=getdetail(res.data[0].province, add_all, 'id').name
		if(res.data[0].city){
			county=getdetail(res.data[0].city, city, 'id').district
			res.data[0].province2+=getdetail(res.data[0].city, city, 'id').name
			if(res.data[0].county){
				
				res.data[0].province2+=getdetail(res.data[0].county, county, 'id').name
			}
		}
	}
	
	$('div').each(function(){
		if($(this).data('value')){
			var key=$(this)[0].className.split(" ")[1]
			if(res.data[0][key]){
				$(this).html(res.data[0][key])
			}else{
				$(this).html('无数据')
			}
			
		}
	})
	
}).fail(function(){
	Load(1)
})
{else/}
Err('请选择乘客')
window.location.href='{:url("html/system/passenger")}'
{/if}
